// 应用的根组件
import React, {Component} from 'react'
// 引入antd所有样式(应该按需引入)
// import 'antd/dist/antd.css'

// 引入路由
import {BrowserRouter, Route, Switch} from 'react-router-dom'
// 引入路由组件

import Login from './pages/login/login'
import Admin from "./pages/admin/admin";

export default class App extends Component {
  render() {
    return (
      <BrowserRouter>
        {/* 单一匹配 */}
        <Switch>   
          <Route path="/login" component={Login} />
          <Route path="/" component={Admin} />
        </Switch>
      </BrowserRouter>
    );
  }
}
